package com.mall.order.model.dto;

import com.mall.common.annotation.Excel;
import com.mall.common.group.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Setter
@Getter
@ApiModel(description = "小程序创建订单")
public class AppCreateOrderDto {
	
	@ApiModelProperty(value = "商品信息")
	@Valid
	@NotEmpty(message = "订单明细不能为空")
	private AppOrderItemDto item;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "用户ID")
	private Long userId;

	@ApiModelProperty("游泳馆ID")
	private Long swimPlaceId;

	@ApiModelProperty("课程ID")
	private Long courseId;
	
	@ApiModelProperty(value = "学校ID")
	@NotNull(message = "学校ID不能为空")
	private Long schoolId;

	@ApiModelProperty(value = "学校名称")
	@NotNull(message = "学校名称不能为空")
	private String schoolName;

	@ApiModelProperty(value = "年级ID")
	@NotNull(message = "年级ID不能为空")
	private Long gradeId;

	@ApiModelProperty(value = "学校名称")
	@NotNull(message = "学校名称不能为空")
	private String gradeName;

	@ApiModelProperty(value = "班级ID")
	@NotNull(message = "班级ID不能为空")
	private Long classId;

	@ApiModelProperty(value = "班级名称")
	@NotNull(message = "班级名称不能为空")
	private String className;

	@ApiModelProperty(value = "家长姓名")
//	@NotNull(message = "家长姓名不能为空")
	private String parentName;

	@ApiModelProperty(value = "家长手机号")
//	@NotNull(message = "家长手机号不能为空")
	private String parentPhone;

	@ApiModelProperty(value = "学生Id")
	@NotNull(message = "学生Id不能为空")
	private Long studentId;

	@ApiModelProperty(value = "学生姓名")
	@NotNull(message = "学生姓名不能为空")
	private String studentName;
	
	@ApiModelProperty(value = "付款方式：2-微信支付")
	private Integer payType;
	
}
